﻿using System;
namespace Pay.DTO.hfnative {
	/// <summary>
	/// HF扫码请求基类
	/// </summary>
	public class hf_pay_native_model : hf_native_head {
		public hf_pay_native_model() {
		}
		/// <summary>
		/// 交易类型
		/// </summary>
		public string tradeType { get { return "cs.pay.submit"; } }
		/// <summary>
		/// 版本号
		/// </summary>
		public string version {
			get { return "1.3"; }
		}
		/// <summary>
		/// 支付使用的第三方支付渠道:微信公众账号支付wxPub,微信扫码支付wxPubQR,微信app支付wxApp,微信付款码支付wxMicro,
		/// 支付宝扫码支付alipayQR,支付宝APP支付	alipayApp,支付宝付款码支付alipayMicro,
		/// 京东付款码支付	jdMicro,京东扫码支付jdQR,
		/// 银联扫码支付unionpayQR,
		/// QQ钱包扫码qqwalletQR
		/// </summary>
		public string channel { get; set; }
		/// <summary>
		/// 终端类型(n):CSP_AND	闪付Android,CSP_IOS 闪付IOS,CSP_PC 闪付PC,CSP_OTHER 其他
		/// </summary>
		public string terminalType { get; set; }
		/// <summary>
		/// 操作员N
		/// </summary>
		public string cashierNo { get; set; }
		/// <summary>
		/// 商品描述
		/// </summary>
		public string body { get; set; }
		/// <summary>
		/// 商品的标题，该参数最长为 32 个  字符，京东支付、网关支付、快捷支付、QQ钱包为必填
		/// </summary>
		public string subject { get; set; }
		/// <summary>
		/// 商户订单号：商户系统内部的订单号,32个字符内、可包含字母, 确保在商户系统唯一
		/// </summary>
		public string outTradeNo { get; set; }
		/// <summary>
		/// 交易金额：单位：元
		/// </summary>
		public string amount { get; set; }
		/// <summary>
		/// 默认人民币：CNY
		/// </summary>
		public string currency { get { return "CNY"; } }
		/// <summary>
		/// 支付完成后结果通知url；参数参考交易详细查询;
		/// </summary>
		public string notifyUrl { get; set; }
	}

	/// <summary>
	/// 微信公众账号支付
	/// </summary>
	public class hf_pay_wxPub_model : hf_pay_native_model {
		/// <summary>
		/// 支付成功跳转路径；form表单形式提交商户后台；参数参考交易详细查询;
		/// </summary>
		public string callbackUrl { get; set; }
		/// <summary>
		///  0:待封装;1:原生公众号(返回json串给jsapi拉起支付)
		/// </summary>
		public string isRaw { get { return "1"; } }
		/// <summary>
		/// 子商户公众号标识
		/// </summary>
		public string subAppId { get; set; }
		/// <summary>
		/// 子商户公众号下关注的用户openid
		/// </summary>
		public string subOpenId { get; set; }
	}

	/// <summary>
	/// 微信APP支付
	/// </summary>
	public class hf_pay_wxAPP_model : hf_pay_native_model {
		/// <summary>
		/// 微信开放平台上创建应用所生成的AppID
		/// </summary>
		public string mobileAppId { get; set; }
	}

	/// <summary>
	/// 微信、支付宝付款码支付
	/// </summary>
	public class hf_wx_alipay_micro_model : hf_pay_native_model {
		/// <summary>
		/// 授权码
		/// </summary>
		public string authCode { get; set; }
		/// <summary>
		/// 过滤，以编号逗号隔开
		/// balance	余额
		/// moneyFund 余额宝
		/// coupon 红包
		/// pcredit 花呗
		/// pcreditpayInstallment 花呗分期
		/// creditCard 信用卡
		/// creditCardExpress 信用卡快捷
		/// creditCardCartoon 信用卡卡通
		/// credit_group 信用支付类型（包含信用卡卡通、信用卡快捷、花呗、花呗分期）
		/// debitCardExpress 借记卡快捷
		/// mcard 商户预存卡
		/// pcard 个人预存卡
		/// promotion 优惠（包含实时优惠+商户优惠）
		/// voucher 营销券
		/// point 积分
		/// mdiscount 商户优惠
		/// bankPay 网银
		/// </summary>
		public string disablePayChannels { get; set; }
	}

	/// <summary>
	/// 京东支付
	/// </summary>
	public class hf_jd_micro_model : hf_pay_native_model {
		/// <summary>
		/// 交易付款码：渠道是jdMicro必须
		/// </summary>
		public string token { get; set; }
	}

	/// <summary>
	/// 银联扫码支付,QQ钱包扫码
	/// </summary>
	public class hf_pay_unionpay_qq_model : hf_pay_native_model {
		/// <summary>
		/// 支付成功跳转路径
		/// </summary>
		public string callbackUrl { get; set; }
	}
}
